import request from '/@/utils/request'

// 定时任务列表
export const crontabLists = (params?: any) => request.get('/crontab/lists', params);

// 添加定时任务
export const crontabAdd = (params?: any) => request.post('/crontab/add', params);

// 定时任务详情
export const crontabDetail = (params?: any) => request.get('/crontab/detail', params);

// 编辑定时任务
export const crontabEdit = (params?: any) => request.post('/crontab/edit', params);

// 删除定时任务
export const crontabDel = (params?: any) => request.delete('/crontab/delete', params);

// 获取规则执行时间
export const crontabExpression = (params?: any) => request.get('/crontab/expression', params);

// 操作定时任务
export const srontabOperate = (params?: any) => request.post('/crontab/operate', params);